/*
 * ITextReader.h
 *
 *  Created on: May 13, 2011
 *      Author: ToanNhan *
 */

#ifndef ITEXTREADER_H_
#define ITEXTREADER_H_
#include <FBase.h>
#include <vector>
using namespace std;
using namespace Osp::Base;

class ITextReader {
protected:
	vector<String> arrText;
	int currentTextIndex;
public:
	/*
	 * Doc cac doan text trong danh sach
	 * @return : result
	 */
	virtual result readText() = 0;
	/*
	 * Doc chuoi text
	 * @param : String - Chuoi can doc
	 * @return : result
	 */
	virtual result readText(String text) = 0;
	/*
	 * Gan mang chuoi can doc
	 * @param : vector<String> Mang chuoi can doc
	 */
	void setTexts(vector<String> arrText);
	/*
	 * Lay chuoi text can doc
	 * @return : vector<String>
	 */
	vector<String> getTexts();
	/*
	 * Lay vi tri hien tai cua doan text
	 * @return int
	 */
	int getCurrentTextIndex();
	/*
	 * Gan vi tri hien tai cua doan text
	 * @param : int - vi tri hien tai
	 */
	void setCurrentTextIndex(int index);
	ITextReader();
	virtual ~ITextReader();
};

#endif /* ITEXTREADER_H_ */
